package com.smart.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 环境数据
 * </p>
 *
 * @author Cookies
 * @since 2024-05-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("environment_data")
@ApiModel(value="EnvironmentData对象", description="环境数据")
public class EnvironmentData implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "唯一记录ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "设备ID")
    private String deviceId;

    @ApiModelProperty(value = "设备位置")
    private String deviceLocation;

    @ApiModelProperty(value = "数据类型")
    private String type;

    @ApiModelProperty(value = "数据采集时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime deviceTime;

    @ApiModelProperty(value = "数据采集值")
    private BigDecimal doserate;


}
